<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 13 Mar 2012 13:56:14
 *
 * 
 */
?>
           <div class="toolbar-wrapper">
            	<div class="toolbar-container">
                    <ul class="toolbar">
                        <li><a href="<?php echo URL::base()?>admin/lowongan" class="New"><span class="medium_icon_new"></span></a></li>
                    </ul>
                </div>
            	<h1 class="title">Form Lowongan</h1>
            </div>
                 <div class="form-container">
	              
	                  <?php echo Form::open(URL::base().'admin/lowongan/save')?>

	                  <fieldset>
	                      <legend>Data Lowongan</legend>
	                          <div><label for="uname">Area Of Work<em>*</em></label> 
	                          		<?php echo Form::select('mstareaofwork_id', $arealists, $form['mstareaofwork_id'], array())?>
	                          </div>
	                          <div><label for="uname">Placement<em>*</em></label> 
	                          		<?php echo Form::select('mstplacements[]', $placelists, '', array('multiple' => 'multiple'))?>
	                          </div>	  
	                          <div><label for="uname">Department<em>*</em></label> 
	                          		<?php echo Form::select('mstdepartment_id', $departmentlists, $form['mstdepartment_id'], array())?>
	                          </div>	
	                          <div><label for="uname">Judul<em>*</em></label> 
	                          
	                          		<?php echo Form::input('deskripsi', $form['deskripsi'], array())?>
	                          </div>	     
	                  	       <div><label for="uname">Pendidikan<em>*</em></label> 
	                          		<?php echo Form::select('mstpendidikan_id', $pendidikanlists, $form['mstpendidikan_id'], array())?>
	                          </div>
	                  	       <div><label for="uname">Jabatan<em>*</em></label> 
	                          		<?php echo Form::select('mstjabatan_id', $jabatanlists, $form['mstjabatan_id'], array())?>
	                          </div>		 
	                          <div><label for="uname">Kualifikasi Umum<em>*</em></label> 
	                          		<?php echo Form::textarea('kualifikasi_umum', $form['kualifikasi_umum'], array('class'=>'tinymce'))?>
	                          </div>	
	                          <div><label for="uname">Kualifikasi Khusus<em>*</em></label> 
	                          		<?php echo Form::textarea('kualifikasi_khusus', $form['kualifikasi_khusus'], array('class'=>'tinymce'))?>
	                          </div>
	                          <div><label for="uname">Terbit<em>*</em></label> 
	                          		<?php echo Form::input('datefrom', $form['datefrom'], array('id'=>'datepicker'))?> - <?php echo Form::input('dateto', $form['dateto'], array('id'=>'datepicker1'))?>
	                          </div>	
	                          <div><label for="uname">Publikasi<em>*</em></label> 
	                          		<?php echo Form::input('publisheddate', $form['publisheddate'], array('id'=>'datepicker2'))?> 
	                          </div>		                                            
	                  </fieldset>
	                  
	                  <div class="buttonrow">
	                  		<?php echo Form::submit('submit', 'Save', array('class'=>'button'))?>
	              
	                      <input type="button" value="Discard" class="button" />
	                  </div>
	                  
	              
	                 <?php 
	                 if(isset($form['id']))
	                 {
	                	echo Form::hidden('id', $form['id']);
	                 }
	                 echo Form::close()
	                 ?>
	                 </div><!-- /form-container -->